import React from 'react'
import { useParams, useLocation, useSearchParams } from 'react-router-dom'

const Index: React.FC = () => {
	const params = useParams()

	const location = useLocation()
	
	console.log(location.search);
	
	return <div>
		<pre>{ params.id }</pre>
		<pre>{ params.name }</pre>
	</div>
}


export default Index